package org.fengling.readingplatform.order.service.impl;

import cn.hutool.db.sql.Order;
import org.fengling.readingplatform.model.entity.order.OrderInfo;
import org.fengling.readingplatform.order.mapper.OrderInfoMapper;
import org.fengling.readingplatform.order.service.OrderInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderInfoServiceImpl implements OrderInfoService {

    @Autowired
    private OrderInfoMapper orderInfoMapper;

    @Override
    public Order getOrder() {
        return null;
    }


    // 获取订单信息的方式
    @Override
    public OrderInfo getByOrderNo(String orderNo) {
        return orderInfoMapper.getByOrderNo(orderNo);
    }
}